/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
(function(){
    $.fn.pumper_paging = function(){
            $(".pagination_content").find("a").each(function(){
                $(this).click(function(){
                    var url = $(this).attr('href');
                    var st = 0;
                    values = url.split("&");
                    if(values[1] != null){
                        temps = values[1].split("=");
                        st = temps[1];
                    }
                    $code = $("#c").val();
                    if($code ==""){
                        $code="ajax";
                    }
                    $url = $("#pumper_url").val() +"/pumper/"+ $("#c").val() +"/" +st + ".html";
                    $.post( 
                        $url,
                        {st:st, code:$code, act:"pumper"},
                        function(data) {
                            if($.trim(data) != ""){
                                $("#video_layout").html($.trim(data));                    
                            }
                        },
                        'html'
                    );
                    return false;
                });
            });
        }
})(jQuery);

